<!doctype html>
<html>
<head>
    <title>Hello AngularJS</title>
    <link href="webjars/bootstrap/3.2.0/less/bootstrap.less" rel="stylesheet">
    <link href="webjars/bootstrap/3.2.0/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
        [ng\:cloak], [ng-cloak], .ng-cloak {
            display: none !important;
        }
    </style>
</head>

<body ng-app="hello" ng-cloak class="ng-cloak" ng-controller="home as home">
<nav class="navbar navbar-default">
    <div class="container">
        <p class="navbar-left">
            <a href="/">home</a>
        </p>
        <p>
            <a class="navbar-brand" href='#/'><b>UI</b></a>
        </p>
        <p class="navbar-text navbar-right" ng-show="home.authenticated">
            Signed in as <a href="#/" class="navbar-link">{{home.user}}</a>
        </p>
    </div>
</nav>

<div class="container">
    <h1>message</h1>
    <div ng-show="home.authenticated">
        <p>The ID is {{home.greeting.id}}</p>
        <p>The content is {{home.greeting.content}}</p>
    </div>
    <div ng-show="!home.authenticated">
        <p>Login to see your greeting</p>
    </div>
</div>
<script src="webjars/jquery/2.1.1/jquery.min.js" type="text/javascript"></script>
<script src="webjars/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
<script src="webjars/angularjs/1.3.8/angular.min.js" type="text/javascript"></script>
<script src="webjars/angularjs/1.3.8/angular-route.min.js" type="text/javascript"></script>
<script src="js/hello.js"></script>
</body>
</html>
